Repository navigation
feat(thumb)!: replace the video string with StreamThumbnailSource - #259
Merged
Merged
Conversation
Open
3 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Callers now pass a StreamThumbnailSource (network URL, local file or Android content URI) instead of a bare string, and every platform opens the video according to that kind. The String `video`/`videos`/`headers` parameters are deprecated and keep working. Also brings the example app's Android toolchain up to what current Flutter requires, and fixes Android 10+ failing to thumbnail a local video when maxWidth or maxHeight is 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`video`, `videos` and `headers` are removed rather than deprecated, so every caller has to say where a video comes from. `source` and `sources` are now required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A file source naming a host fails with UNSUPPORTED_SOURCE on every platform, Windows only opens absolute drive-letter paths, and Linux applies the single-file container whitelist to files as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Keep headers internal and copy them into an unmodifiable map. - Check every source kind explicitly, and reuse the shared check on web. - File the narrowed inputs under breaking changes, matching the changelog's existing headings, and correct the README notes. - Reach the Windows file-path check from the integration tests, and give each unit-test input its own test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xsahil03x
force-pushed
the
feat/thumbnail-source
branch
from
November 25, 2026 15:04
5e24bf9 to
d6eebe8
Compare
renefloor
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of FLU-1373
What
StreamThumbnailSourcewith.network(url, headers:),.file(path)and.contentUri(uri)(Android only), taken assource/sourcesby everyStreamThumbnailmethod.http/httpsonly; anything else fails with anUNSUPPORTED_SOURCEPlatformException. On Linux, videos are read from single-file containers only (no HLS/DASH). On Windows, file sources must be absolute paths on a local drive.video,videosandheadersare removed, andsource/sourcesare required, so every caller says where a video comes from.maxWidthormaxHeightis0.Why
A string doesn't say whether it is a URL to fetch or a path to open, so each platform guessed. The caller knows, so it now says so — the same shape
video_playeruses (networkUrl/file/contentUri).Verified
flutter analyze --fatal-infosand unit tests (38) pass.🤖 Generated with Claude Code